//ProxyClient.java
package proxy.wisereference;

/**
 *@author:youtubezou
 *@version:2012-7-25
 */
public class ProxyClient {
	public static void main(String[] args) {
		Room room = new ProxyRoom();
		String[] names = {"thief", "Police", "Manager", "Owner", "Guest"}; 
				
		for(int i = 0; i < 5; i++){
			System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
			if(room.enterRoom(new Person((int)(Math.random()*10), names[i]))){
				room.getSubject();
				room.exitRoom();	
			}
		}
	}
	
}
